Skip to main content

All Questions

Tagged with
2votes
1answer
303views

Created a new user in the same group as another user, but new user cannot access directory

I am trying to create a new user in Linux, such that the new user can access (read) log files that were created by another, previously-existing user (the "oracle" user). The log files are ...
jstack100's user avatar
0votes
2answers
62views

Why are some symlinks unreadable when their target is readable?

On Linux, I'm looking at /proc/1/cwd. This symlink is not readable as a normal user: $ ls /proc/1/cwd ls: cannot access '/proc/1/cwd': Permission denied But /proc/1 is accessible: $ ls /proc/1 <...
codeandfire's user avatar
0votes
3answers
43views

Am I understanding the implication of knowing a user ID of a file on the accessibility of that file on other filesystems correctly?

In Classic Shell Scripting from O'Reilly, Arnold Robbins and Nelson H.F. Beebe write the follwing, If a filesystem with user smith attached to user ID 100 were mounted on, or imported to, a ...
Enlico's user avatar
  • 2,189
4votes
1answer
63views

What are the rules that determine file permissions of b after I do cp /path/to/a /p/t/b, depending on file permissions of /path/to/a and all dirs?

In Classic Shell Scripting from O'Reilly, Arnold Robbins and Nelson H.F. Beebe write the follwing example: $ umask 023 $ rm -f foo $ cp /bin/pwd foo $ ls -l /bin/pwd foo -rwxr-xr-x 1 root root ...
Enlico's user avatar
  • 2,189
2votes
2answers
158views

Possible to apply sticky bit effects to a group rather than user?

I've been reading up on the "sticky bit" and it's almost what i want… but not quite. Background I'm managing a small JupyterHub instance with three courses and an instructor for each course. ...
Dustin Wheeler's user avatar
-5votes
1answer
69views

Linux + is it possible to config super user in sudoers file in order to enable super user run any other script from other ordinary user [duplicate]

I gives user king to be almost super user , and I set the following in /etc/sudoers king ALL=(ALL) NOPASSWD:ALL additionally we have other user that called – lincoin ( simple user ) now I ...
yael's user avatar
  • 13.9k
0votes
1answer
62views

changed ownership on folders by user that defined in sudoers file

I have the following simple script that changed ownership on folders more hola_config.sh #!/bin/bash chown -R hola:pola /home/darna chmod -R 775 /home/darna in /etc/sudoers I added the following ( ...
yael's user avatar
  • 13.9k
0votes
0answers
82views

Linux ls shows some abnormal files with “?” No message of desired type

Help me understand the following problem - there is software that interacts with files in XML format. The software is wrapped in a docker container. When the software works with the file, the error &...
dimkqa's user avatar
0votes
2answers
70views

Linux permissions for a user not logged in sudoers

There is a server to which I have access (login and password). Logging in as this user on this server it is found that my user is not logged into sudoers. No additional information is available, I ...
KukuruzoFirst's user avatar
0votes
1answer
69views

Uninstalled package but command remained usable as user (command not found with sudo)

I recently installed silversearcher-ag with sudo and uninstalled it as it required sudo to run the command every single time. The command I used to install and uninstall this package respectively: # ...
stucash's user avatar
0votes
0answers
39views

write permissions for group

On a samba share on Linux, I want to have a directory that can be written to by different users (members of a group called 'users'). Subdirectories those users create also have to be writeable by ...
minyves's user avatar
0votes
0answers
65views

SGID in File Permissions

the following are two scenarios to let you know how i understand the problem and the SGID: Scenario 1: user A is part of the group G. group G has full privileges to 2 files-its the group owner of ...
winstar345's user avatar
1vote
0answers
66views

Command works when path is entered manually, but not when $PATH is used

I installed Golang into a custom folder under $HOME called .go/exec. After the installation, it put the binary under $HOME/.go/exec/go. So I updated $PATH to contain this directory: $HOME/.go/exec:$...
Berk Açıkgöz's user avatar
0votes
2answers
205views

MySQL binlogs on cifs share getting OS errno 13 - Permission denied

I am creating a Rocky Linux 9 server to replace a CentOS 7 server. The original CentOS 7 server mounts a Windows shared directory where it stores the binlogs. When I try to duplicate this for the ...
SMich's user avatar
0votes
0answers
23views

Sticky bit on directory seems to prevent modification of files in it. Peculiarity of the distro or norm? [duplicate]

Recently I've noted I cannot edit file owned by another account in /tmp as ordinary user account. By trial and error seems it is due to sticky bit on /tmp. But man page of chmod and https://en....
Martian2020's user avatar

153050per page
close